#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int main()
{
	int n;
	scanf("%d", &n);
	int* p = (int*)malloc(n * (sizeof(int)));
	int i, j, t;
	for (i = 0; i < n; i++)
		scanf("%d", &p[i]);

	for (i = 0; i < n - 1; i++)
	{
		for (j = 0; j < n - 1 - i; j++)
		{
			if (p[j] > p[j + 1])
			{
				t = p[j];
				p[j] = p[j + 1];
				p[j + 1] = t;
			}
		}
	}
	for (i = 0; i < n; i++)
		printf("%d ", p[i]);
	return 0;
}